package com.atguigu.yygh.user.client;

/**
 * Created with IntelliJ IDEA
 *
 * @Date: 2023/1/6 - 10:17
 * @Author: Hyoung
 * @Description:
 */


import com.atguigu.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 就诊人API接口
 */
@FeignClient("service-user")
public interface PatientFeignClient {

    /**
     * 获取就诊人
     *
     * @param id
     * @return
     */
    @GetMapping("/inner/user/patient/get/{id}")
    Patient getPatient(@PathVariable("id") Long id);
}